<script lang="ts">
	const { message = '加载失败，请稍后重试' } = $props<{
		message?: string;
	}>();
</script>

<div class="error-component">
	<div class="error-icon">⚠️</div>
	<div class="error-message">{message}</div>
</div>

<style scoped lang="scss">
	.error-component {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 40px 20px;
		color: #666;
		text-align: center;
	}

	.error-icon {
		font-size: 48px;
		margin-bottom: 16px;
	}

	.error-message {
		font-size: 14px;
		line-height: 1.5;
	}
</style>
